import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import axios from 'axios';
import QS from 'qs'
import store from './store'

import './style/theme/index.css'
import api from "./api/api.js"
import './assets/icon/iconfont.css'

Vue.prototype.$api = api;


Vue.use(ElementUI);

Vue.config.productionTip = false
new Vue({
	store,
	router,
	render: h => h(App),
}).$mount('#app')

import Router from 'vue-router'
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
	return routerPush.call(this, location).catch(error => error)
}

